<template>
  <am-row>
      <am-col :span="12">
          {{str+"a"}}
          <button @click="str+='abc'">+abc</button>
      </am-col>
  </am-row>
</template>
<script lang="ts">
import Vue from 'vue'
import Component from 'vue-class-component'
import {Getter,Action,Mutation} from 'vuex-class'
import { SearchResult } from '../store/IFace';
import {clone} from 'lodash'
import {A_XX, M_XX} from '../store/modules/Setting'
@Component({
    components:{
    }
})
export default class OrderList extends Vue{
    @Action(A_XX) search:any;
    P:number=1;
    str:string="string"
    @Mutation(M_XX) mOrderDetaul:any;
    mounted(){
        this.search();
        this.$watch('P',(n,o)=>{
            this.search({
                P:n
            })
        })
    }
    showDetail(data:any){
        this.mOrderDetaul(data)
        //跳转到某个地方
        this.$router.push({
            path:'/XXDetail'
        })
    }
}
</script>

